// 优惠券管理相关类型定义

export interface Coupon {
    id: string;
    amount: number;
    totalQuantity: number;
    claimedQuantity: number;
    minAmount: number;
    discountType: number;
    discountTypeName: string;
    discountValue: number;
    maxDiscountAmount: number;
    validStartTime: string;
    validEndTime: string;
    perUserLimit: number;
    status: number;
    statusName: string;
    createTime: string;
    updateTime: string;
    createBy: string;
    updateBy: string;
    name: string;
    content: string;
    instructions: string;
}

export interface CouponQueryParams {
    current?: number;
    size?: number;
    name?: string;
    discountType?: number;
    status?: number;
    startDate?: string;
    endDate?: string;
}

export interface CouponPageResponse {
    records: Coupon[];
    total: number;
    current: number;
    size: number;
    pages: number;
}
